/*
Copyright SecureKey Technologies Inc. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
*/
package event

import "git.cloud.inspur.com/ichain/ichain-sdk-go/pkg/ichain/events/deliverclient/seek"

type ClientOption func(*Client) error

func WithBlockEvents() ClientOption {
	return func(c *Client) error {
		c.permitBlockEvents = true
		return nil
	}
}

func WithBlockNum(from uint64) ClientOption {
	return func(c *Client) error {
		c.fromBlock = from
		return nil
	}
}

func WithSeekType(seek seek.Type) ClientOption {
	return func(c *Client) error {
		c.seekType = seek
		return nil
	}
}
